import React from "react";
import {RouterType} from '../types'
import Login from '../page/Login'
import Sigin from '../page/Sigin'
import Home from '../page/Home'

import HomeC from '../page/Home/Home'
import List from '../page/Home/List'
import Set from '../page/Home/Set'
import Updata from '../page/Home/Updata'
const routers:RouterType[]=[{
    path:"/",
    element:<Login/>
},{
    path:"/login",
    element:<Login/>
},{
    path:"/sigin",
    element:<Sigin/>
},{
    path:"/home",
    element:<Home/>,
    children:[{
        path:"/home/home",
        element:<HomeC/>
    },{
        path:"/home/list",
        element:<List/>
    },{
        path:"/home/set",
        element:<Set/>
    },{
        path:"/home/updata",
        element:<Updata/>
    }]
}]
export default routers